set session after login with laravel

54

set session after login with laravel -

    $user = Auth::User();
    Session::put('user', $user);
    $user=Session::get('user');
    return $user->name; 

Comments

Submit
0 Comments